﻿package com.wandian.controller
{	
	import com.wandian.view.ApplicationMediator;

	import org.puremvc.as3.interfaces.*;
	import org.puremvc.as3.patterns.command.*;

	/**
	 * 处理视图的命令，注册ui到中介者
	 * @author long
	 */
	public class ViewPrepCommand extends SimpleCommand
	{

		public function ViewPrepCommand()
		{
			return;
		} 

		override public function execute(notification:INotification):void
		{
			var texas:*=notification.getBody() as Texas;
			facade.registerMediator(new ApplicationMediator(texas));
			return;
		} 

	}
}
